package chapter.compare;

import java.util.Comparator;

/**
 * description: new java files...TODO
 * @version v1.0
 * @author w
 * @date 2019年11月2日下午10:15:44
 **/

public class AgeComparator implements Comparator<Student> {

	@Override
	public int compare(Student o1, Student o2) {
		return o1.getAge() - o2.getAge();
	}
	
	
}
